#!/usr/bin/python3
# -*- coding:utf-8 -*-
""""
   @Author: 叶建伟
   @Email: yejw46507@hundsun.com
   @Time: 2022/6/8 9:40
   @File: 核查场景修改.py
"""
import time

from 线下客户管理.线下客户共用脚本.open_menu import open_menu, arm_form_fill
from 基础公共脚本.步骤检查_hui2 import check_table, check_table_rows,FE
from 基础公共脚本.common_util import click_submit

def check_scene_update(input_data=None, ui_expect=None):
    open_menu({'子系统名称': '反洗钱系统', '菜单名称': '数据核查/核查场景'})
    # 资源设置搜索框表单填入
    FE.table().select_row({'场景名称': input_data.get("场景名称")})
    FE.table().click_button_in_cell({'场景名称': input_data.get("场景名称")}, "操作",'修改', True)

    time.sleep(2)
    search_form = FE.form(text="场景名称")
    search_form.auto_fill(input_data)
    time.sleep(1)
    click_submit()
    # 检查查询结果
    check_table_rows(input_data=None, ui_expect=ui_expect)